package com.deliinsns.app.entrance;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.deliinsns.sys.BasicController;
@Controller
public class StudentEntrance extends BasicController {
	
	@RequestMapping(value = "/student", method = RequestMethod.GET)
	 public String student(HttpServletRequest request,HttpServletResponse response)throws Exception {
		return "student/index";
	 }
	@RequestMapping(value = "/student/login", method = RequestMethod.GET)
	 public String studentLogin(HttpServletRequest request,HttpServletResponse response)throws Exception {
		 request.setAttribute("actionFor", "login");
		return "student/loginAndRegister";
	 }
	 @RequestMapping(value = "/student/register", method = RequestMethod.GET)
	 public String studentRegister(HttpServletRequest request,HttpServletResponse response)throws Exception {
		 request.setAttribute("actionFor", "register");
		return "student/loginAndRegister";
	 }
}
